//
//  GridScrollView.h
//  FootPrint
//
//  Created by alex tao on 3/21/13.
//  Copyright (c) 2013 alex tao. All rights reserved.
//

#import <UIKit/UIKit.h>

@class GridScrollView;

@protocol GridScrollDelegate <NSObject>

- (void) didSelect:(GridScrollView*)gridScroll atTotalIndex:(NSInteger)idx;

@end

///////////////////////////////////////////////////////////////////////////////////////////////////

@interface GridScrollView : UIScrollView

@property (nonatomic, assign) id<GridScrollDelegate>    gridDelegate;
@property (nonatomic, retain) NSMutableArray *          cells;

@property (nonatomic) NSUInteger                        colCnt;     // default 4
@property (nonatomic) NSUInteger                        cellHeight; // default is square
@property (nonatomic) BOOL                              oneRowMode; // always show one row

- (void) resetAll;

@end
